<?php

namespace App\Repositories;

use App\Models\PayRecord;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class PayRecordRepository
 * @package App\Repositories
 * @version September 18, 2017, 5:17 pm UTC
 *
 * @method PayRecord findWithoutFail($id, $columns = ['*'])
 * @method PayRecord find($id, $columns = ['*'])
 * @method PayRecord first($columns = ['*'])
*/
class PayRecordRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'amount',
        'channel',
        'out_trade_no',
        'extra_param',
        'trade_state',
        'transaction_id',
        'payer_openid',
        'payer_id',
        'notify_data',
        'notify_at'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return PayRecord::class;
    }
}
